package route

import (
	"github.com/gin-gonic/gin"
	"go_websocket/api"
	"go_websocket/middleware"
)

func GetRoute() *gin.Engine {
	ro := gin.Default()
	ro.Use(middleware.Cors)
	ro.Any("/createws", api.ConCreateConn)

	return ro
}
